package xidw_router

import (
	"github.com/gin-gonic/gin"
	"server/apps/xidw/xidw_api"
)

type FileUploadAndDownloadRouter struct{}

func (e *FileUploadAndDownloadRouter) InitFileUploadAndDownloadRouter(Router *gin.RouterGroup) {
	fileUploadAndDownloadRouter := Router.Group("fileUploadAndDownload")
	fileUploadAndDownloadApi := xidw_api.FileUploadAndDownloadApi{}
	{
		fileUploadAndDownloadRouter.POST("upload", fileUploadAndDownloadApi.UploadFile)         // 上传文件
		fileUploadAndDownloadRouter.POST("getFileList", fileUploadAndDownloadApi.GetFileList)   // 获取上传文件列表
		fileUploadAndDownloadRouter.POST("deleteFile", fileUploadAndDownloadApi.DeleteFile)     // 删除指定文件
		fileUploadAndDownloadRouter.POST("editFileName", fileUploadAndDownloadApi.EditFileName) // 编辑文件名或者备注
	}
}
